package com.gistone.commis.mapper;

import com.gistone.commis.entity.Attendance;
import com.gistone.commis.entity.FixedItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface FixedItemMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(FixedItem record);

    int insertSelective(FixedItem record);

    FixedItem selectByPrimaryKey(Integer id);



    @Select("SELECT * FROM tb_fixed_item order by id desc limit 1")
    FixedItem selectLatest();



    int updateByPrimaryKeySelective(FixedItem record);

    int updateByPrimaryKey(FixedItem record);
    @Select("SELECT * FROM tb_fixed_item order by id desc")
    List<FixedItem> selectSelective(FixedItem fixedItem);
}